
//
//  ImageViewLabelCollectionViewCell.m
//  FlyGift
//
//  Created by lanou3g on 15/7/14.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import "ImageViewLabelCollectionViewCell.h"

@implementation ImageViewLabelCollectionViewCell
- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame])
    {
        self.giftImageView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0,frame.size.width, frame.size.width)];
//        self.giftImageView.backgroundColor = [UIColor blueColor];
        self.giftNameLabel = [[UILabel alloc]initWithFrame:CGRectMake(0, frame.size.width + 5 ,frame.size.width, frame.size.height - frame.size.width - 5)];
//        self.giftNameLabel.backgroundColor = [UIColor yellowColor];
        self.giftNameLabel.font = [UIFont systemFontOfSize:12];
        self.giftNameLabel.textAlignment = NSTextAlignmentCenter;
        [self.contentView addSubview:_giftImageView];
        [self.contentView addSubview:_giftNameLabel];
    }
    return self;
}

@end
